Contents

import pandas as pd
import plotly.express as px

pd_merge = pd.read_csv('datasets/water_life.csv')
pd_merge.dropna(inplace=True)

fig = px.scatter(pd_merge, x='Water', y='Life', animation_frame='Year', animation_group='Country Name', color='Country Name', hover_name='Country Name', size_max=55, range_x=[1,100], range_y=[0,90])
fig.show()